package com.ocom.mqsimple.feign;

import com.alibaba.fastjson.JSONObject;
import com.ocom.common.constant.RecodeUrl;
import com.ocom.common.constant.UnifiendPayUrl;
import com.ocom.common.entity.card.EntityNotMealRecode;
import com.ocom.common.entity.card.EntityXfGoodListDishes;
import com.ocom.common.request.payconfig.mealorder.GetOrderDishesRequest;
import com.ocom.common.request.xfrecde.NotMealRecodeRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.webapi.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "xfrecode")
public interface XfRecordFeign {

    @PostMapping(UnifiendPayUrl.URL_getConsumeDetail)
    Result getConsumeDetail(@RequestBody JSONObject jsonObject);

    @PostMapping(UnifiendPayUrl.URL_getConsumeReports)
    Result getConsumeReports(@RequestBody JSONObject jsonObject);

    @PostMapping(UnifiendPayUrl.URL_getOrderDishesC)
    public Result<PageVO<EntityXfGoodListDishes>> getOrderDishesC(@RequestBody GetOrderDishesRequest request);

    @PostMapping(RecodeUrl.URL_saveNotMealRecode)
    public Result saveNotMealRecode(@RequestBody EntityNotMealRecode entityNotMealRecode);

    @PostMapping(RecodeUrl.getNotMealRecode)
    public Result getNotMealRecode(@RequestBody NotMealRecodeRequest request);
}
